<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class AdminRoleModel extends Model
{
    //
    protected $table = 'shop_admin_roles';

    public function nodes()
    {
        return $this->belongsToMany('App\Model\AdminNodeModel', 'shop_admin_node_roles', 'role_id', 'node_id');
    }
}
